package ru.grpc.client.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class Sched {
    final GrpcService grpcService;

    public Sched( GrpcService grpcService) {
        this.grpcService = grpcService;
    }

    @Scheduled(fixedRate = 10000000)
    public void scheduled() {
        grpcService.send();
    }
}
